﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace XMLToWordLib
{
    public class BaseConfig
    {

        public  const  string DataTableName = "统计数据表";
        public const  string BaseTableName = "统计任务基本信息表";

        public string connectionString = "Data Source=(DESCRIPTION =(ADDRESS_LIST =(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.20.3)(PORT = 1521)))(CONNECT_DATA =(SID = dbhzj)(SERVER = DEDICATED)));User Id =hzjuser1;Password=hzjuser1;Integrated Security=no";
        public string tjTableSQLForMate = "select * from v_tj_tjx  where 统计项编号 in({0})";
        public string tableName = "V_TJ_TJX";
        public string TagFildName = "统计项编号";
        public string SQLFildName = "执行语句";
        public string forMateFildName = "统计描述";
        public string DBConFildName = "连接参数";
        public string DataLinkIDFild = "连接参数编号";
        public string DoSqlFild = "执行语句";
        public string FomateFild = "统计描述";
        public string ResoultFold = "结果";




        public BaseConfig(string connectionString)
        {
            if (connectionString != null)
            {
                this.connectionString = connectionString;
            }
        }

        public BaseConfig(string connectionString, string tableName, string TagFildName, string SQLFildName, string forMateFildName, string DBConFildName)
        {
            if (connectionString != null)
            {
                this.connectionString = connectionString;
            }
            this.tableName = tableName;
            this.TagFildName = TagFildName;
            this.SQLFildName = SQLFildName;
            this.forMateFildName = forMateFildName;
            this.DBConFildName = DBConFildName;

        }
    }
}
